<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>购物车</title>

</head>
<body>
<table cellspacing="0" cellpadding="0" border="2" width="500" align="center">
    <tr>
        <th>编号</th>
        <th>商品名</th>
        <th>价格</th>
    </tr>
    <c:forEach var="pro" items="${trolley}">
        <tr>
            <td>${pro.pid}</td>
            <td>${pro.pname}</td>
            <td>${pro.price}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
